package com.cls.business.entity;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cls.common.entity.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
/**
 * 延期申请表 Entity
 *
 * @author slx
 * @date 2020-12-02 14:26:56
 */
@Data
@TableName("biz_delay_apply")
public class DelayApply extends BaseEntity implements Serializable {


    /**
     * 
     */
    @TableId(value = "delay_apply_id", type = IdType.AUTO)
    private Long delayApplyId;

    /**
     *
     */
    @TableField(exist = false)
    private Long entrustId;

    /**
     * 申请课题id
     */
    @TableField("declare_id")
    private Long declareId;


    /**
     * 延期时长（月）
     */
    @TableField("duration")
    private Double duration;


    /**
     * 延期期限（年月日）
     */
    @TableField("term")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date term;

    /**
     * 延期理由
     */
    @TableField("reason")
    private String reason;
    /**
     * 延期理由
     */
    @TableField("examine_delay")
    private String examineDelay;

    /**
     * 延期申请附件
     */
    @TableField("delay_file_id")
    private Long delayFileId;

    /**
     * 延期申请附件名称
     */
    @TableField(exist = false)
    private String delayFileName;

}
